]> dgit.raspbian.org Git - gnome-shell.git/commit
main: Override global logError() function
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 21 Dec 2023 17:43:17 +0000 (18:43 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 21 Dec 2023 19:17:32 +0000 (19:17 +0000)
commitdc655b9ed002f89ae1b6cd874bbe68193018f4af
tree83d061d7c45cab446263d0fce48d645a2da3cb1b
parentee150f294964bf5234395a54fbcdfed0c5e55bb5
main: Override global logError() function

logError() prints an exception with an optional prefix, and is
used fairly commonly through-out the code base.

The problem is that by being defined in gjs, it uses "Gjs" as the
GLib log domain, not our own as expected.

Address this by adding a small override that implements the function
with console.error().

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3072>
js/ui/main.js